function findNoticeList() {
    // 项目公告管理
    var noticeColumns = [{
        id: 'title',
        title: '公告标题',
        type: 'string',
        width: 200,
        columnClass: 'text-center',
    }, {
        id: 'content',
        title: '公告内容',
        type: 'string',
        columnClass: 'text-left',
    }, {
        id: 'user_name',
        title: '发布人',
        type: 'string',
        width: 75,
        columnClass: 'text-center',
    }, {
        id: 'create_time',
        title: '发布时间',
        type: 'date',
        format: 'yyyy-MM-dd',
        otype: 'time_stamp_ms',
        width: 100,
        columnClass: 'text-center',
    }, {
        id: 'operation',
        title: '操作',
        width: 130,
        type: 'string',
        columnClass: 'text-center',
        resolution: function (value, record, column, grid, dataNo, columnNo) {
            var editNotice = "editNotice('" + record.id + "')";
            var delNotice = "delNotice('" + record.id + "')";
            var met = {
                'GGHJY-BJU': editNotice,
                'GGHJY-SCD': delNotice
            }
            content = $certusUtils.initOperateAutho($$scope.leftMenu, ['GGHJY-BJU%edit', 'GGHJY-SCD%delete'], met, noticeColumns);
            return content;
        }
    }];

    $certusUtils.ajax("findNoticeList", {
        "proId": proId
    }, function (response) {
        var noticeOption = {
            lang: 'zh-cn',
            ajaxLoad: false,
            extraWidth: 20,
            // loadURL:'url',
            exportFileName: '项目公告',
            datas: response.data,
            columns: noticeColumns,
            gridContainer: 'noticeContainer',
            toolbarContainer: 'noticeToolBarContainer',
            tools: '',
            pageSize: 10,
            pageSizeLimit: [10, 15, 20]
        };
        var noticeGrid = $.fn.dlshouwen.grid.init(noticeOption);
        noticeGrid.load();
    })
}

function addNotice() {
    toLoadHtml(48);
}

function editNotice(id) {
    toLoadHtml(47, id);
}

function delNotice(id) {
    layer.confirm('是否确认删除？', {
        btn: ['确定', '取消'] //按钮
    }, function (index) {
        $certusUtils.ajax("delNotice", {
            "id": id,
            "projId": proId
        }, function () {
            layer.msg("删除成功");
            toLoadHtml(50);
        })
    });
}

function addMeeting() {
    toLoadHtml(46);
}

function findMeetList() {
    // 会议纪要管理
    var meetingColumns = [{
        id: 'met_time',
        title: '会议时间',
        type: 'string',
        width: 100,
        columnClass: 'text-center',
    }, {
        id: 'title',
        title: '会议主题',
        type: 'string',
        columnClass: 'text-center',
    }, {
        id: 'partake_user',
        title: '参会人员',
        type: 'string',
        // width: 20,
        hideType: 'lg|md|sm|xs',
        columnClass: 'text-left',
    }, {
        id: 'content',
        title: '会议内容',
        type: 'string',
        // hideType: 'lg|md|sm|xs',
        columnClass: 'text-left',
    }, {
        id: 'user_name',
        title: '上传人员',
        type: 'string',
        width: 75,
        columnClass: 'text-center',
    }, {
        id: 'create_time',
        title: '上传时间',
        type: 'date',
        format: 'yyyy-MM-dd',
        otype: 'time_stamp_ms',
        width: 100,
        columnClass: 'text-center',
    }, {
        id: 'operation',
        title: '操作',
        width: 130,
        type: 'string',
        columnClass: 'text-center',
        resolution: function (value, record, column, grid, dataNo, columnNo) {
            var editMeeting = "editMeeting('" + record.id + "')";
            var delMeeting = "delMeeting('" + record.id + "')";
            var met = {
                'GGHJY-BJU': editMeeting,
                'GGHJY-SCD': delMeeting
            };
            content = $certusUtils.initOperateAutho(leftMenu, ['GGHJY-BJU%edit', 'GGHJY-SCD%delete'], met, meetingColumns);
            return content;
        }
    }];

    $certusUtils.ajax("findMeetList", {
        "proId": proId
    }, function (response) {
        var meetingOption = {
            lang: 'zh-cn',
            ajaxLoad: false,
            // loadURL:'url',
            exportFileName: '会议纪要',
            datas: response.data,
            columns: meetingColumns,
            gridContainer: 'meetingContainer',
            toolbarContainer: 'meetingToolBarContainer',
            tools: '',
            extraWidth: 20,
            pageSize: 10,
            pageSizeLimit: [10, 15, 20]
        };
        var meetingGrid = $.fn.dlshouwen.grid.init(meetingOption);
        meetingGrid.load();
    })
}

function editMeeting(id) {
    toLoadHtml(45, id);
}

function delMeeting(id) {
    layer.confirm('是否确认删除？', {
        btn: ['确定', '取消'] //按钮
    }, function (index) {
        $certusUtils.ajax("delMeeting", {
            "id": id
        }, function () {
            layer.msg("删除成功");
            toLoadHtml(49);
        })
    });
}